<?php
error_reporting(0);
include ('common/connection.php');
$queryUser="SELECT max(id) as id FROM `users`";
$resultUser=mysql_db_query($db_name,$queryUser);
$rsUser=mysql_fetch_array($resultUser);

$group=$_REQUEST['group'];
$batch=$_REQUEST['batch'];
$gender=$_REQUEST['gender'];
$full_name=$_REQUEST['full_name'];
$nick_name=$_REQUEST['nick_name'];
$cell_phone=$_REQUEST['cell_phone'];
$cell_phone1=$_REQUEST['cell_phone1'];
$email=$_REQUEST['email'];
$address=$_REQUEST['address'];
$amount=$_REQUEST['amount'];
$spouse=$_REQUEST['spouse'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::.IBA REUNION 2012.::</title>
<link rel="stylesheet" href="style/style.css" type="text/css" /> 
<script language="javascript">
function backs()
{
	location.href="<?php echo "index.php?group=$group&batch=$batch&gender=$gender&full_name=$full_name&nick_name=$nick_name&cell_phone=$cell_phone&cell_phone1=$cell_phone1&email=$email&address=$address&amount=$amount&spouse=$spouse"?>";
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="cnfrmStyle.css" />
<link rel="stylesheet" href="formStyle.css" type="text/css" />
<link rel="stylesheet" href="tomal_style.css" type="text/css" />
<link rel="stylesheet" href="style_countdown.css" type="text/css" />
<script src="jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="jquery.countdown.pack.js"></script>

<script type="text/javascript">
$(function () {
$('#countdown').countdown({until:$.countdown.UTCDate(+6, 2012,  1 - 1, 20), format: 'DHMS', layout: 
	  '<div id="timer">' + '<hr />'+
		  '<div id="timer_days" class="timer_numbers">{dnn}</div>'+
		  '<div id="timer_hours" class="timer_numbers">{hnn}</div>'+ 
		  '<div id="timer_mins" class="timer_numbers">{mnn}</div>'+
		  '<div id="timer_seconds" class="timer_numbers">{snn}</div>'+
		'<div id="timer_labels">'+
			'<div id="timer_days_label" class="timer_labels">days</div>'+
			'<div id="timer_hours_label" class="timer_labels">hours</div>'+
			'<div id="timer_mins_label" class="timer_labels">mins</div>'+
			'<div id="timer_seconds_label" class="timer_labels">secs</div>'+
		'</div>'+							
	'</div>'
						  
});
});
</script>

<script type="text/javascript">
function document_valid(num){

	if(num==1 || num==2){
		document.getElementById("sub_box5").style.display="none";
		document.getElementById("sub_box5_1").style.display="none";
		document.getElementById("sub_box4").style.display="block";
		document.getElementById("sub_box4_1").style.display="block";
	}
	if(num==3){
		document.getElementById("sub_box4").style.display="none";
		document.getElementById("sub_box4_1").style.display="none";
		document.getElementById("sub_box5").style.display="block";
		document.getElementById("sub_box5_1").style.display="block";
	}
	
		
	}
</script>

<title>Home</title>
</head>



<body>
<div id="main_div">
	<form name="regis" action="regis_do.php" method="post">
	<div id="main_div_upper_shadow"></div><!-- end of main_div_upper_shadow-->
    <div id="main_div_upper_black"></div><!-- end of main_div_upper_black-->
    
    <div id="main_div_banner_top">
    	<div id="logo"></div><!-- end of logo -->
    	<div id="header1"></div><!-- end of header1-->
        <div id="slogan"><p>45 years of togetherness</p></div><!-- end of slogan -->
        
    </div><!-- end of main_div_banner_top-->
	<?php 
		$origi=$rsUser['id']; 
		$total=(100+$origi);
		if($total<1000){$total="0".$total;}			
	?>
    
    <div id="middle_black_body">
    	<p class="countdown_header">Times Left for Registration</p>
        <p class="registration_header">Total Registered</p>
        <div class="total_registered"><img src="images/total_registerd.PNG" /><p><?php echo $total;?></p></div>
    	<div id="countdown"></div>
    
    
    	<table border="0" cellpadding="0" cellspacing="0">
        	<tr style="color:#FF4B00; font-weight:bold;">
            	<td><p>Date</p></td>
                <td><p>Venue</p></td>
                <td><p>Time</p></td>
            </tr>
            <tr style="color:#FFF">
            	<td><p>27 January, 2012</p></td>
                <td><p>Bangabandhu International Conference Centre</p></td>
                <td><p>3pm - 11pm</p></td>
            </tr>
        </table>
    </div><!-- end of middle_black_body -->
    
    <div id="after_middle_black_body">
   		<div id="after_middle_curvy_top"></div>
        <div id="after_middle_normal_body">
        	<div id="blinking_info"><p>NO SPOT REGISTRATION WILL BE AVAILABLE</p></div><!-- end of blinking_info -->
        	<p class="header_p1" style="font-size:31px !important;">Please Verify The Following Information And Submit</p>
            <p class="header_p2">(To change click back)</p>
            
            <div class="container">
                
                    <table cellspacing="10" cellpadding="5">
                        <tr>
                            <td> Group: </td>
                            <td>
								<span class="cnfrmText"> 
									<?php 
										$group=$_POST['group']; 
										if($group==1){echo "BBA";}
										elseif($group==2){echo "MBA";}
										elseif($group==3){echo "EMBA";}
										elseif($group==4){echo "Fellow";}
										elseif($group==5){echo "Honorary";}
										elseif($group==6){echo "Associate";}
									?>
								</span> 
							</td>
                            
                            <td></td>
                                
                            <td> Batch: </td>
                            <td><span class="cnfrmText"> <?php echo $_POST['batch'];?> </span></td>
                            
                            <td></td>
                            
                            <td> Gender: </td>
                            <td>
								<span class="cnfrmText"> 
									<?php $gender=$_POST['gender']; if($gender==1){echo "Male";}else{echo "Female";}?> 
								</span>
							</td>
                        </tr>
                        </table>
                        
                        <table cellspacing="10" cellpadding="5">              
                        <tr>
                            <td> Name: </td>
                            <td colspan="2"><span class="cnfrmText"> <?php echo $_POST['full_name'];?></span></td>
                                
                            <td> Nickname: </td>
                            <td colspan="2"><span class="cnfrmText"><?php echo $_POST['nick_name'];?></span></td>
                        </tr>
                        
                        <tr>
                            <td> Cell No: </td>
                            <td colspan="2"><span class="cnfrmText"><?php echo $_POST['cell_phone'];?></span></td>
                                
                            <td> Alternate Cell No: </td>
                            <td colspan="2"><span class="cnfrmText"><?php echo $_POST['cell_phone'];?></span></td>
                        </tr>
                        
                        <tr>
                            <td> Email </td>
                            <td colspan="2"><span class="cnfrmText"><?php echo $_POST['email'];?> </span></td>
                                
                            <td> Confirm mail </td>
                            <td colspan="2"><span class="cnfrmText"> <?php echo $_POST['conemail'];?></span></td>
                        </tr>
                        
                        <tr>
                            <td valign="top"> Postal Address </td>
                            <td colspan="2"><span class="cnfrmText"><?php echo $_POST['address'];?></span></td>  
                        </tr>
                	</table>
                    
                    
                </form>
            </div><!-- end of container -->
            
            <div class="box2">
                <h2>Your Registration Options</h2>
                <div class="sub_box1">
                    <h3>Option 1</h3>
                    <div class="sub_box_2">
                        <div class="p_box">IBAAA Life Member</div>
                    </div>
                    <p>This Option is only for Current</p>
                    <p><a href="#">IBAAA Life Members</a></p><br />
                    <div class="sub_box_2">
                        <div class="p_box"><b>BDT 2,000</b></div>
                    </div>
                    <div class="inp">
                    
                    </div>
                </div>
                <div class="sub_box1">
                    <h3>Option 2</h3>
                    <div class="sub_box_2">
                        <div class="p_box">IBAAA Membership + Registration</div>
                    </div>
                    <p>Be IBAAA Life Member</p><br />
                    <p>&nbsp;</p>
                    <div class="sub_box_2">
                        <div class="p_box"><b>BDT 4,000</b></div>
                    </div>
                    <div class="inp">
                        
                    
                    </div>
                    
                </div>
           
                <div class="sub_box1">
                    <h3>Option 3</h3>
                    <div class="sub_box_2">
                        <div class="p_box">Only Registration</div>
                    </div>
                    <p>This Option is for registration</p>
                    <p>For Reunion Only</p><br />
                    <div class="sub_box_2">
                        <div class="p_box"><b>BDT 3,000</b></div>
                    </div>
                    <div class="inp">
                        
                    
                    </div>
                    
                </div>
                <form  name="form_1">
                        <input align="middle" style="margin:0 0 0 85px" type="radio" name="amount" id="amount" value="1"<?php if($_POST['amount']==1){echo "checked";}?>  onchange="document_valid(1)">Please Select
                        <input align="middle" style="margin:0 0 0 170px" type="radio" name="amount" id="amount" value="2"<?php if($_POST['amount']==2){echo "checked";}?>  onchange="document_valid(2)">Please Select
                        <input align="middle" style="margin:0 0 0 170px" type="radio" name="amount" id="amount" value="3"<?php if($_POST['amount']==3){echo "checked";}?>  onchange="document_valid(3)">
                        Please Select
                </form>
                <br />
            </div>
            <div class="impt_note" id="blink_1"><p>* IBAAA - IBA Alumni Association. Please Note That IBAAA General Members Will Choose Option 2 Or Option 3.</p></div><br /><br />
            <div class="box3">
                <h2>Are You Bringing Your Spouse Along?</h2>
                <div class="p_box">Spouse Registration Fee (Spouse, Who is an IBA Graduate, is Requested to Register Separately)</div><br /><br />
                <div class="sub_box4" id="sub_box4"><b>BDT 1,500</b>
                </div><div class="p_box1" id="sub_box4_1">With Option 1 & 2</div><br />
                
                <div class="sub_box4" id="sub_box5"><b>BDT 2,500</b></div>
                <div class="p_box1" id="sub_box5_1">With Option 3</div><br />
                    <input align="middle" type="radio" name="spouse" id="spouse" value="1"<?php if($_POST['spouse']==1){echo "Checked";}?>>Yes
                    <input align="middle" type="radio" name="spouse" id="spouse" value="2"<?php if($_POST['spouse']==2){echo "Checked";}?>>No<br /><br />
                <div class="p_box" style="font-weight:bold; color:#900;" id="blink_2">GUESTS AND CHILDREN ARE NOT ALLOWED</div>
            	<br /><br />
            
            </div>
            <br />
            <br />
            <div class="box4">
                <br />
				<input type="submit" value="Submit" class="oxava"/>
				<input type="hidden" name="origin" value="<?php echo $_POST['origin'];?>" />
				<input type="hidden" name="group" value="<?php echo $_POST['group'];?>" />
				<input type="hidden" name="batch" value="<?php echo $_POST['batch'];?>" />
				<input type="hidden" name="gender" value="<?php echo $_POST['gender'];?>" />
				<input type="hidden" name="full_name" value="<?php echo $_POST['full_name'];?>" />
				<input type="hidden" name="nick_name" value="<?php echo $_POST['nick_name'];?>" />
				<input type="hidden" name="cell_phone" value="<?php echo $_POST['cell_phone'];?>" />
				<input type="hidden" name="cell_phone1" value="<?php echo $_POST['cell_phone1'];?>" />
				<input type="hidden" name="email" value="<?php echo $_POST['email'];?>" />
				<input type="hidden" name="address" value="<?php echo $_POST['address'];?>" />
				<input type="hidden" name="amount" value="<?php echo $_POST['amount'];?>" />
				<input type="hidden" name="spouse" value="<?php echo $_POST['spouse'];?>" />
                <input type="button" value="Back" onclick="return backs()" class="oxava"/>
                <br />
                <div class="p_box_3"><p>You Will Receive Registration Confirmation Email With Payment Point Information.</p></div>
            </div>	
            
            
            
        
        </div>
        <div id="after_middle_curvy_bottom"></div>
    </div><!-- end of after_middle_black_body -->
    </form>
</div><!-- end of main_div -->

<script type="text/javascript" />
function blink(selector){
$(selector).fadeOut(500, function(){
    $(this).fadeIn(500, function(){
        blink(this);
    });
});
}



blink('#blink_2');
blink('#blinking_info');
</script>
            
            
        
        </div>
        
    </div><!-- end of after_middle_black_body -->
    
</div><!-- end of main_div -->
</body>
</html>
